#!/bin/bash

pants_long_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.22.4f22379cGoyeau&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:20525&sort=s&style=g&from=sn_1_prop-qp#J_crumbs"
pants_9or7_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.23.6f8e379cTEl9np&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:30465&sort=s&style=g&search_condition=4&from=sn_1_prop-qp&industryCatId=50025135#J_crumbs"
pants_7_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.27.117e379c6I2qca&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:30271&sort=s&style=g&search_condition=4&from=sn_1_prop-qp&industryCatId=50025135#J_crumbs"
pants_5_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.26.3bf7379cxk5f1b&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:30272&sort=s&style=g&search_condition=4&from=sn_1_prop-qp&industryCatId=50025135#J_crumbs"
pants_short_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.25.3193379cVqJjQU&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:20524&sort=s&style=g&search_condition=4&from=sn_1_prop-qp&industryCatId=50025135#J_crumbs"
pants_9_url="https://list.tmall.com/search_product.htm?spm=a220m.1000858.1000722.24.4901379ckOmEEF&cat=50025135&q=%BF%E3%D7%D3+%C5%AE&prop=122276111:72202018&sort=s&style=g&search_condition=4&from=sn_1_prop-qp&industryCatId=50025135#J_crumbs"

pants_long_dir=../tianmao_data/pants_long
pants_9or7_dir=../tianmao_data/pants_9or7
pants_7_dir=../tianmao_data/pants_7
pants_5_dir=../tianmao_data/pants_5
pants_short_dir=../tianmao_data/pants_short
pants_9_dir=../tianmao_data/pants_9

python3 tianmao_spider.py $pants_long_url $pants_long_dir 2>pants_long.log &
python3 tianmao_spider.py $pants_9_url $pants_9_dir 2>pants_9.log &
python3 tianmao_spider.py $pants_7_url $pants_7_dir 2>pants_7.log &
python3 tianmao_spider.py $pants_5_url $pants_5_dir 2>pants_5.log &
python3 tianmao_spider.py $pants_short_url $pants_short_dir 2>pants_short.log &
# python taobao_spider.py $pants_9or7_url $pants_9or7_dir

# python taobao_product_detail_spider.py $pants_long_dir
